package com.my.behaviourtype.memento;

import java.util.Date;

/**
 * 
* 
* 备忘录存储原发器对象的内部状态。
* @author Hao.Tong
* @version 1.0
* @see 
* @modify
 */
public class Memento {
	private String state;
	private Date time;
	
	public Memento(String state, Date time) {
		super();
		this.state = state;
		this.time = time;
	}

	/**
	 * @return the time
	 */
	public Date getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(Date time) {
		this.time = time;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
}
